#coding=utf-8
import os
import win32api
if __name__ == '__main__':


    li = os.popen('cmd .').readlines()
    print 'redis_server is startting ...'
    win32api.ShellExecute(0, 'open'  ,r'%s/redis_server/redis-server.exe'%li[-1][:-1],'','',0)
    print 'main is startting ...'
    win32api.ShellExecute(0, 'open',r'%s/main.exe'%li[-1][:-1],'','',0)
    print 'Proxy_Spiders is startting ...'
    win32api.ShellExecute(0, 'open', r'%s/Proxy_Spiders..exe'%li[-1][:-1],'','',0)
